<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
    <td width="350" valign="top">
    
<div id="halaman"><div class="jusul">New Member </div>
<?php 


mysql_select_db($database_sepolwan_connect, $sepolwan_connect);
$query_tl_user = "SELECT * FROM memberdb WHERE aktif = 'ya' and id <> '".$row_sesi_member['id']."' ORDER BY id DESC limit 6";
$tl_user = mysql_query($query_tl_user, $sepolwan_connect) or die(mysql_error());
$row_tl_user = mysql_fetch_assoc($tl_user);
$totalRows_tl_user = mysql_num_rows($tl_user);
do {
	mysql_select_db($database_sepolwan_connect, $sepolwan_connect);
$query_iring = "SELECT * FROM ikut WHERE dari = '".$row_sesi_member['id']."' AND ke = '".$row_tl_user['id']."'";
$iring = mysql_query($query_iring, $sepolwan_connect) or die(mysql_error());
$row_iring = mysql_fetch_assoc($iring);
$totalRows_iring = mysql_num_rows($iring);
?>
<div style="width:50px; height:50px; float:left; overflow:hidden; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; margin-right:10px; margin-bottom:10px"><a href="<?php echo $row_tl_user['nama_user'] ?>" target="_parent"><img src="<?php if(file_exists("images/member/ava/resize_50_50_".md5($row_tl_user['id']).".jpg")) { echo $base."images/member/ava/resize_50_50_".md5($row_tl_user['id']).".jpg"; } else { if(file_exists("images/member/ava/".md5($row_tl_user['id']).".jpg")) { echo $base."images/member/ava/tester_50_50_".md5($row_tl_user['id']).".jpg"; } else { echo $base."images/member/ava/resize_50_50_default.jpg"; } } ?>" /></a> </div>
  <strong><a href="<?php echo $base.$row_tl_user['nama_user'] ?>"><?php echo $row_tl_user['full_name'] ?> </a></strong>
  <?php if ($row_tl_user['id']<>$row_sesi_member['id'] and $totalRows_iring==0) { ?><form <?php if($row_sesi_member['id']<>''){ ?> action="<?php echo $base ?>" <?php } else {?>  action="<?php echo $base."login.php" ?>"  <?php } ?> method="post" name="okikut" >
<input name="ke" type="hidden" value="<?php echo $row_tl_user['id'] ?>" />
<input name="okikut" type="submit" value="Follow" /></form> <?php } else if ($row_tl_user['id']<>$row_sesi_member['id'] and $totalRows_iring>0) {  ?>
<form action="<?php echo $base ?>" method="post" name="delikut" >
<input name="ke" type="hidden" value="<?php echo $row_tl_user['id'] ?>" />
<input name="delikut" type="submit" value="Following" style="background: #036; color: #FFF" /></form>
<?php } ?>
   <div style="width:100%; height:1px; background:#CCC; margin-top:20px"></div>

<?php mysql_free_result($iring); } while ($row_tl_user = mysql_fetch_array($tl_user)); mysql_free_result($tl_user);  ?>    </div>
 <div style="padding:10px; background: #EFEFEF; border:1px solid #CCC;" align="center"><font size="-2" color="#999999"><a href="<?php echo $base ?>halaman/people.html">Lihat Member lainya </a></font></div><div style="height:10px"></div>
<?php include "tambah/copy.php"; ?>
    </td>
    <td width="10"></td>
    <td width="590" valign="top" ><?php 



$colname_tampil_member = "-1";

if (isset($_GET['user'])) {

  $colname_tampil_member = $_GET['user'];

}

mysql_select_db($database_sepolwan_connect, $sepolwan_connect);

$query_tampil_member = sprintf("SELECT * FROM memberdb WHERE nama_user = %s", GetSQLValueString($colname_tampil_member, "text"));

$tampil_member = mysql_query($query_tampil_member, $sepolwan_connect) or die(mysql_error());

$row_tampil_member = mysql_fetch_assoc($tampil_member);

$totalRows_tampil_member = mysql_num_rows($tampil_member);



mysql_select_db($database_sepolwan_connect, $sepolwan_connect);

$query_tl_user = "SELECT * FROM dinding_tl WHERE me = '".$row_tampil_member['id']."' ORDER BY id DESC";

$tl_user = mysql_query($query_tl_user, $sepolwan_connect) or die(mysql_error());

$row_tl_user = mysql_fetch_assoc($tl_user);

$totalRows_tl_user = mysql_num_rows($tl_user);

?>

<?php if ($totalRows_tampil_member > 0) { // Show if recordset not empty ?>

  <div style="border:1px solid #CCC; width:98%; padding:1%; background:#F5F5F5"><span id="judul"><strong><a href="<?php echo $base; echo $_GET['user'] ?>">Timeline</a></strong></span></div>

  <?php } // Show if recordset not empty

  else { echo "<div align='center'><strong>Halaman Kosong</strong></div>";

  }

  

   ?>

<div id="wrapper">
        <div id="pageData"></div>
        </div>
<?php

mysql_free_result($tampil_member);



mysql_free_result($tl_user);

?>

</td>
  </tr>
</table><br />
